<!--
 * @FilePath     : /study_code/jquery/api-innerWidth-innerHeight copy.html
 * @Description  : jqObj.outerWidth(); jqObj.outerHeight() 获取 外部区域尺寸
 * @Date         : 2025-04-18 11:32:38
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-04-18 11:32:38
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="/jquery/size/style.css" />
  </head>
  <body>
    <div class="a" id="a0"></div>
    <div class="a" id="a1"></div>

    <script src="/jquery/dist/jquery.min.js"></script>
    <script>
      console.log('content-box')
      console.log($('#a0').outerWidth()) // 228
      console.log($('#a0').outerHeight()) // 428

      console.log('border-box')
      console.log($('#a1').outerWidth()) // 200
      console.log($('#a1').outerHeight()) // 400
    </script>
  </body>
</html>
